package ModelLayer;
import java.util.Date;

/**
 * Write a description of class Loan here.
 * 
 * @author Mauran, Kim
 * @version 06-11-2014
 */
public class Loan
{
    // instance variables - replace the example below with your own
   
    private int id;
    private Date borrowDate;
    private Date period;
    private Date recievedDate;
    private int serialNumber;
    private int personId;
    
    /**
     * Constructor for objects of class Loan
     */
    public Loan(int id, Date borrowDate, Date period, Date recievedDate, int serialNumber, int personId)
    {
        this.id = id;
        this.borrowDate = borrowDate;
        this.period = period;
        this.recievedDate = recievedDate;
        this.serialNumber = serialNumber;
        this.personId = personId;
    }
    
    public int getId()
    {
        return this.id;
    }
    
    public Date getBorrowDate()
    {
        return this.borrowDate;
    }
    
    public Date getPeriod()
    {
        return this.period;
    }
    
    public Date recievedDate()
    {
        return this.recievedDate;
    }
    
    public int serialNumber()
    {
        return this.serialNumber;
    }
    
    public int getPersonId()
    {
        return this.personId;
    }
    
    public void setId(int id)
    {
        this.id = id;
    }
    
    public void setBorrowDate(Date borrowDate)
    {
        this.borrowDate = borrowDate;
    }
    
    public void setPeriod(Date period)
    {
        this.period = period;
    }

    public void setRecievedDate(Date recievedDate)
    {
        this.recievedDate = recievedDate;
    }
    
    public void setSerialNumber(int serial)
    {
        this.serialNumber = serial;
    }
    
    public void setPersonId(int personId)
    {
        this.personId = personId;
    }

}
